﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Test</title>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.extension.js"></script>
    <script src="~/Scripts/messages_zh.js"></script>
    <script type="text/javascript">
        $(function() {
            $('form:first').validate(
            {
                "rules":
                    {
                        "UserName":
                        {
                            "required": true,
                            //"email": true,
                            "myRemote": { url: "/NewAdmin/Pnews/TitleExists" }
                        },
                        "se":
            {
                "required": true,
                //"email": true,
                "myRemote": { url: "/NewAdmin/Pnews/TitleExists" }
            }
                    }
            });
        });

    </script>

</head>
<body>
    <div>
        <form id="form1" action="/home/test22" method="post">
            <div>
            <input id="UserName" name="UserName" type="text" />
                </div>
            <div><input id="email" name="email" type="text" /></div>
            <div><select id="se" name="se"><option value="">aaa</option><option value="22">bbb</option><option>ccc</option></select></div>
            <input type="submit" value="提交" />
        </form>
    </div>
    
</body>
</html>
